<template>
    <div id="app">
        <router-view/>
    </div>
</template>

<script>

export default {
    name: 'App',
    watch: {
        $route(from, to) {
            if (this.$route.path !== "/") {
                if (!this.$root.getStorage("authorization")) {
                    this.$router.replace("/");
                }
            }
        },
    },
}
</script>

<style lang="scss">
#app {
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    min-width: 1280px;
    overflow: hidden;
}
</style>